package jmu.edu.yjc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import jmu.edu.yjc.domain.ResponseResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface WebSocketService {
    //index
    ResponseResult getContacts(Long id);
    ResponseResult getMessages(Integer pageNumber ,Integer pageSize, Long userId , Long toUserId);
    ResponseResult getTotalUnRead(Long id);
    ResponseResult updateMessagesByUserId(Long fromUserId,Long toUserId);

    //admin
    ResponseResult getToUserContracts(Long id);

    ResponseResult updateMessageById(String messageId);

    ResponseResult uploadFile(MultipartFile multipartFile, String message);
}
